efi/boot: make sure graphics mode is set while booting through MB2
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Fri, 25 Oct 2019 10:01:55 +0000 (12:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Oct 2019 10:01:55 +0000 (12:01 +0200)
commitb5433e7ed0114f447d8d1d9fa3c6778ee52f8486
tree9349984743bdf67b1efca14ff582d4cf6b05e6ed
parentb6ef69de690e9a5333388defd593818f1d944939
efi/boot: make sure graphics mode is set while booting through MB2

If a bootloader is using native driver instead of EFI GOP it might
reset graphics mode to be different from what has been originally set
by firmware. While booting through MB2 Xen either need to parse video
setting passed by MB2 and use them instead of what GOP reports or
reset the mode to synchronise it with firmware - prefer the latter.

Observed while booting Xen using MB2 with EFI GRUB2 compiled with
all possible video drivers where native drivers take priority over firmware.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: af9f357fb8dbceb9c5dd1c5cb8b4e198f6149456
master date: 2019-10-10 10:58:45 +0200
xen/common/efi/boot.c